﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using XZL.GM.Bll;
using XZL.GM.Dal;

public partial class MyInfo_Lecturer : AdminBasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
           
            BindLecturerList();
        }
    }

    protected string DGFormatSex(string Status)
    {
        if (Status == "-1")
        { return "待审核"; }
            
        else if (Status=="1")
        {return "已通过";}
            
        else if(Status=="2")
        { return "未通过";}

        return "";
    }


    private void BindLecturerList()
    {
        int? count = 0;

        divCondition.Visible = true;
        gridList.DataSource = ApplyInfoBiz.GetApplyList(txtRealName.Text.Trim(),3, netPager.CurrentPageIndex, netPager.PageSize, ref count);
        gridList.DataBind();
        netPager.RecordCount = count.Value;
        lblWarn.Text = "申请数量:" + count.Value;

    }

    /// <summary>
    /// 分页控件
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void netPager_PageChanged(object sender, EventArgs e)
    {
        BindLecturerList();
    }

    protected void btnSelect_Click(object sender, EventArgs e)
    {
        BindLecturerList();
        netPager.CurrentPageIndex = 1;
    }


   
}